package com.jy.rhin.facade.ws.basic.notification;

import cn.org.chiss.rhin._2015.base.object.ResourceUnknownFault;
import cn.org.chiss.rhin._2015.base.object.UnableToDestroyPullPointFault;
import cn.org.chiss.rhin._2015.base.object.UnableToGetMessagesFault;
import com.jy.rhin.config.NamespaceConstants;
import com.jy.rhin.support.aspect.AuditLog;
import org.oasis_open.docs.wsn.b_2.*;
import org.springframework.stereotype.Component;

import javax.jws.WebService;
import java.util.ArrayList;
import java.util.List;

/**
 * This class was generated by Apache CXF 3.5.1
 * 2023-09-25T15:08:27.502+08:00
 * Generated source version: 3.5.1
 *
 */
@WebService(
        serviceName = "PullPointServer",
        portName = "PullPointPort",
        targetNamespace = NamespaceConstants.NS_RHIN,
        endpointInterface = "com.jy.rhin.facade.ws.basic.notification.PullPoint")
@Component
public class PullPointPortImpl implements PullPoint{


    @Override
    @AuditLog
    public DestroyPullPointResponse destroyPullPoint(DestroyPullPoint destroyPullPointRequest) throws UnableToDestroyPullPointFault, ResourceUnknownFault {
        return new DestroyPullPointResponse();
    }

    @Override
    @AuditLog
    public GetMessagesResponse getMessages(GetMessages getMessagesRequest) throws UnableToGetMessagesFault, ResourceUnknownFault {
        GetMessagesResponse res = new GetMessagesResponse();
        List<NotificationMessageHolderType> notificationMessage = new ArrayList<>();
        NotificationMessageHolderType n = new NotificationMessageHolderType();
        notificationMessage.add(n);
        res.setNotificationMessage(notificationMessage);
        return res;
    }
}
